import request from '@/utils/request'
import { RefChannel, ReqPutChannels } from '@/types/channel'
// 这里是获取用户自己的频道
export const reqGetChannels = () => request.get<RefChannel>('/v1_0/user/channels')
// 这里是获取全部的频道
export const reqGetAllChannels = () => request.get<RefChannel>('/v1_0/channels')
// 重置我的频道列表
export const reqResetChannels = (channels: ReqPutChannels) => request.put('/v1_0/user/channels', { channels })
